home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-10-25 | 1.2 KB | 44 lines | [TEXT/MPS ] |
- {[a-,body+,h-,o=100,r+,rec+,t=4,u+,#+,j=20/57/1$,n+]}
- { MDemoDialogs.p }
- { Copyright © 1988 - 1990 by Apple Computer, Inc. All rights reserved. }
-
- PROGRAM DemoDialogs;
-
- {$MC68020-} { The main program must be universal code }
- {$MC68881-}
-
- USES
- { • Required for this unit's interface }
-
- { • MacApp }
- UMacApp,
-
- { • Building Blocks }
- UPrinting, UGridView, UTEView, UDialog,
-
- { • Implementation use }
- UDemoDialogs;
-
- VAR
- gTestApplication: TTestApplication; { The application object }
-
- BEGIN
- InitToolBox; { Essential toolbox and utilities
- initialization }
- IF ValidateConfiguration(gConfiguration) THEN { Make sure we can run }
- BEGIN
- { Continue with remainder of initialization }
- InitUMacApp(12); { Initialize MacApp; 12 calls to MoreMasters}
- InitUTEView; { Initialize TEView unit }
- InitUDialog; { Initialize other units }
- InitUGridView;
-
- New(gTestApplication); { Allocate a new application object }
- FailNil(gTestApplication);
- gTestApplication.ITestApplication(kFileType); { Initialize that new object }
- gTestApplication.Run; { Run the application. }
- END
- ELSE
- StdAlert(phUnsupportedConfiguration);
- END.
-